import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int sum=0,zs=0,fs=0,cut=0,m=0;
        double average=0;
        while (true){
            int n=in.nextInt();
            if (n==0){
                break;
            }
            cut++;
            sum+=n;
            if (n>0){
                zs++;
            }
            else if (n<0){
                fs++;
            }
            m++;
        }
        if (sum!=0) {
            average = sum * 1.0 / cut;
            System.out.println(zs);
            System.out.println(fs);
            System.out.println(sum);
            System.out.println(average);
        }
    }
}
